# print(len('abc 你好'.encode()))
print('abc 你好')
# print('abc 你好'.encode('gbk'))
# print(len('abc 你好'.encode('gbk')))

print(ord('A'))

print(str('\xe4\xbd\xa0'))

formatter = 'good{0}'.format
print(list(map(formatter,['morning'])))

x = 'abc 你好'

print(x.find('x'))

print(':'.join('hello world'.split()))
print(bin(27))
# e = dict([('className','三年级1班'),('teacherName','熊大')])
# print(e)

# dict_a = {'className': '三年级1班', 'teacherName': '熊大'}
# print(dict_a)

# print(dict_a+dict_b)
# print(dict_a.get('className'))
# a = [1,2,3]
# b = [4,5,6]
# print(list(zip(a,b)))

# print(a * 3)
# a.append(b)
# a.extend([7,8,9])
# print(len(a))

# import random
# list_score = []
# for i in range(10):
#     a = random.randint(80,100)
#     list_score.append(a)
# print('shanchuqian',list_score)
# list_score.remove(max(list_score))
# list_score.remove(min(list_score))
# print('shanchuhou',list_score)
# print('pingjunfen',sum(list_score) / len(list_score))

# list_a = [['hello'],'python','good morning']
# import copy
# list_b = copy.deepcopy(list_a)
# # list_b = list_a[:]

# list_b[0].append('good bye')
# print(list_a)
# print(list_b)

# import random
# print(random.randint(50,100))
# print(random.randrange(51,100,2))
# import random
# a = list(range(1,101))
# # print(a)
# # random.shuffle(a)
# # print(random.choices(a,k=20))
# b = random.sample(a,k=20)
# # new_list = sorted(b)
# # print(new_list)
# # print(b)
# b.sort(reverse=True)
# print(b)